
package org.javason.jsonrpc;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;


/**
 * <p>Java class for RelationshipTypeList.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * <p>
 * <pre>
 * &lt;simpleType name="RelationshipTypeList">
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *     &lt;enumeration value="Child"/>
 *     &lt;enumeration value="Contact"/>
 *     &lt;enumeration value="Sibling"/>
 *     &lt;enumeration value="Spouse"/>
 *   &lt;/restriction>
 * &lt;/simpleType>
 * </pre>
 * 
 */
@XmlEnum
public enum RelationshipTypeList {

    @XmlEnumValue("Child")
    CHILD("Child"),
    @XmlEnumValue("Contact")
    CONTACT("Contact"),
    @XmlEnumValue("Sibling")
    SIBLING("Sibling"),
    @XmlEnumValue("Spouse")
    SPOUSE("Spouse");
    private final String value;

    RelationshipTypeList(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static RelationshipTypeList fromValue(String v) {
        for (RelationshipTypeList c: RelationshipTypeList.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v.toString());
    }

}
